﻿<List Header=""  XmlVersion="2"  HAlign="Center"  Height="0"  Width="0"  Culture=""  Calendar=""  ToolbarPosition="Top"  RTL="False"  ShowHeader="False"  ShowToolbar="True"  ShowPrint="False"  ShowAlertMe="False"  ShowCancelButton="True"  ShowAttachments="True"  SaveLocalizations="True"  LocalizationsUrl=""  ToolbarImageOnly="False"  ToolbarTooltips="False"  ShowSaveButton="True"  ShowSaveAndExitButton="True"  AllowNew="True"  AllowDelete="True"  RequiredFieldBorderColor="#C00000"  HelpPage=""  MarkRequiredFields="True"  AsyncValidation="False"  AsyncLoadCompleted="False"  FontSize="0"  ShowUserLoginName="False"  FontFamily=""  PrintControls=""  PrintHeaders=""  PrintTemplate=""  PrintCaption="" >
<LoadCompletedScript>if (form.IsNewRecord())
		form.HideTab(1);
else
		form.ShowTab(1);</LoadCompletedScript>  <Tabs>
<Tab Header="Customer Details" ID="20752FA0-F960-4573-9CC4-19CE8424F4B0"  >
</Tab>
<Tab Header="Contacts" ID="887654B5-23FC-45E7-9F4A-FEB59A302494"  >
</Tab>
  </Tabs>
  <Sections>
<Section ID="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" Header="Details" Tab="20752FA0-F960-4573-9CC4-19CE8424F4B0" Columns="4" ShowBorder="True" BorderWidth="1" BorderColor="#BFBFBF" BackColor="#F2F2F2"  >
</Section>
<Section ID="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" Header="Contact Details" Tab="20752FA0-F960-4573-9CC4-19CE8424F4B0" Columns="4" ShowBorder="True" BorderWidth="1" BorderColor="#BFBFBF" BackColor="#F2F2F2"  >
</Section>
<Section ID="00404102-45A7-42F1-BBD5-CA96F8EE7431" Tab="887654B5-23FC-45E7-9F4A-FEB59A302494" Columns="4" ShowBorder="True" BorderWidth="1" BorderColor="#3F3F3F" BackColor="#EEECE1"  >
</Section>
<Section ID="453FC63F-1C57-4A51-8A8C-3E64C9912D12" Header="Add Contact" Tab="887654B5-23FC-45E7-9F4A-FEB59A302494" Columns="4" ShowBorder="True" BorderWidth="1" BorderColor="#494429" BackColor="#EEECE1"  >
</Section>
  </Sections>
  <Controls>
<Control Type="Label" Name="lbl_Title" GridRow="0" GridColumn="0" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="left" VAlignment="center" Value="Title" LabelForControl="Title" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_Title" GridRow="0" GridColumn="1" GridColumnSpan="3" Margin="2" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="Left" VAlignment="Center" TargetFieldName="Title" IsRequired="True" CellBackColor="Transparent" FontBold="True" FontSize="13" ForeColor="#17365D" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_Industry" GridRow="1" GridColumn="0" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="left" VAlignment="center" Value="Industry" LabelForControl="Industry" ForeColor="Black"  >
</Control>
<Control Type="ComboBox" Name="c_Industry" GridRow="1" GridColumn="1" GridColumnSpan="3" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="Left" VAlignment="Center" TargetFieldName="Industry" CellBackColor="Transparent" Lookup_StaticValues="Finance;Public Sector;Constructions;Computer Software;Computer Hardware" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;SaveValueFieldOnly&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Sorted&quot; Value=&quot;True&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_Country" GridRow="0" GridColumn="0" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="left" VAlignment="center" Value="Country" LabelForControl="Country" ForeColor="Black"  >
</Control>
<Control Type="ComboBox" Name="c_Country" GridRow="0" GridColumn="1" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" TargetFieldName="Country" CellBackColor="Transparent" Lookup_Entity="Countries" Lookup_Url="http://bpcspdev/PowerFormsDemoSiteHTML" Lookup_ListId="COUNTRIES" Lookup_DisplayFieldName="Title" Lookup_ValueFieldName="ID" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;SaveValueFieldOnly&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Sorted&quot; Value=&quot;True&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_City" GridRow="0" GridColumn="2" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="left" VAlignment="center" Value="City" LabelForControl="City" ForeColor="Black"  >
</Control>
<Control Type="ComboBox" Name="c_City" GridRow="0" GridColumn="3" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" TargetFieldName="City" CellBackColor="Transparent" Lookup_Entity="Cities" Lookup_Url="http://bpcspdev/PowerFormsDemoSiteHTML" Lookup_ListId="CITIES" Lookup_DisplayFieldName="Title" Lookup_ValueFieldName="ID" Lookup_ConstraintSourceFieldName="Country" Lookup_ConstraintTargetFieldName="Country" Lookup_ConstraintQueryType="Lookup" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;SaveValueFieldOnly&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Sorted&quot; Value=&quot;True&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_Address" GridRow="2" GridColumn="0" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="left" VAlignment="center" Value="Address" LabelForControl="Address" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_Address" GridRow="2" GridColumn="1" GridColumnSpan="3" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" TargetFieldName="Address" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_Phone" GridRow="3" GridColumn="0" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="left" VAlignment="center" Value="Phone" LabelForControl="Phone" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_Phone" GridRow="3" GridColumn="1" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" TargetFieldName="Phone" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_FAX" GridRow="3" GridColumn="2" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="left" VAlignment="center" Value="FAX" LabelForControl="FAX" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_FAX" GridRow="3" GridColumn="3" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="stretch" VAlignment="center" TargetFieldName="FAX" ForeColor="Black"  >
</Control>
<Control Type="Label" Name="lbl_Email" GridRow="4" GridColumn="0" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="left" VAlignment="center" Value="Email" LabelForControl="Email" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_Email" GridRow="4" GridColumn="1" GridColumnSpan="2" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" TargetFieldName="Email" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_Balance" GridRow="3" GridColumn="0" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="left" VAlignment="center" Value="Balance" LabelForControl="Balance" ForeColor="Black"  >
</Control>
<Control Type="NumberTextBox" Name="c_Balance" GridRow="3" GridColumn="1" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="Left" VAlignment="Center" TargetFieldName="Balance" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Decimals&quot; Value=&quot;0&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Step&quot; Value=&quot;1&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
<ValueChangeScript>value = form.GetControl(&quot;c_Balance&quot;).GetValue();

if (value == &quot;&quot;)
{
		form.GetControl(&quot;c_BalanceIndicator&quot;).SetValue(&quot;&quot;);
}
else 
{
  //d = float(value)
		if (value &lt; 0)
		{
    		form.GetControl(&quot;c_BalanceIndicator&quot;).SetValue(&quot;Poor&quot;);
    		form.GetControl(&quot;c_BalanceIndicator&quot;).SetForeColor(&quot;Red&quot;);
		}
		else if (value &lt; 2000)
		{
				form.GetControl(&quot;c_BalanceIndicator&quot;).SetValue(&quot;Normal&quot;);
				form.GetControl(&quot;c_BalanceIndicator&quot;).SetForeColor(&quot;Blue&quot;);
		}
		else 
		{
    		form.GetControl(&quot;c_BalanceIndicator&quot;).SetValue(&quot;Good&quot;);
    		form.GetControl(&quot;c_BalanceIndicator&quot;).SetForeColor(&quot;Green&quot;);
		}
}</ValueChangeScript></Control>
<Control Type="Label" Name="lbl_Rate" GridRow="2" GridColumn="0" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="left" VAlignment="center" Value="Rate" LabelForControl="Rate" ForeColor="Black"  >
</Control>
<Control Type="Slider" Name="c_Rate" GridRow="2" GridColumn="1" GridColumnSpan="3" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="Left" VAlignment="Center" TargetFieldName="Rate" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;MinimumValue&quot; Value=&quot;0&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;MaximumValue&quot; Value=&quot;10&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;SmallChange&quot; Value=&quot;1&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;LargeChange&quot; Value=&quot;1&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Decimals&quot; Value=&quot;0&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="lbl_ID" GridRow="10" GridColumn="0" HAlignment="left" VAlignment="center" Value="ID" LabelForControl="ID" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_ID" GridRow="10" GridColumn="1" HAlignment="stretch" VAlignment="center" TargetFieldName="ID" IsEnabled="False" IsEnabledOnEdit="False" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="Label" Name="lbl_ContentType" GridRow="11" GridColumn="0" HAlignment="left" VAlignment="center" Value="Content Type" LabelForControl="ContentType" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_ContentType" GridRow="11" GridColumn="1" HAlignment="stretch" VAlignment="center" TargetFieldName="ContentType" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="Label" Name="lbl_FileRef" GridRow="12" GridColumn="0" HAlignment="left" VAlignment="center" Value="URL Path" LabelForControl="FileRef" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_FileRef" GridRow="12" GridColumn="1" HAlignment="stretch" VAlignment="center" TargetFieldName="FileRef" IsEnabled="False" IsEnabledOnEdit="False" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="Label" Name="lbl_FileLeafRef" GridRow="13" GridColumn="0" HAlignment="left" VAlignment="center" Value="Name" LabelForControl="FileLeafRef" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="TextBox" Name="c_FileLeafRef" GridRow="13" GridColumn="1" HAlignment="stretch" VAlignment="center" TargetFieldName="FileLeafRef" IsHidden="True" ForeColor="Black"  >
</Control>
<Control Type="Label" Name="c_Control1" GridRow="4" GridColumn="0" GridColumnSpan="4" Margin="4" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="Left" VAlignment="Center" Value="The balance indicator is calculated according to the Balance value. Negative is Poor, &lt; 2000 is Normal, &gt; 2000 is Good. Calculation is performed by a script on the Value Change event of the Balance control." CellBackColor="Transparent" FontItalics="True" ForeColor="#244061" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control2" GridRow="3" GridColumn="2" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="Left" VAlignment="Center" Value="Balance Indicator" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_BalanceIndicator" GridRow="3" GridColumn="3" Section="185EAF39-2BFE-4EF6-9FDF-9558E79F5A4B" HAlignment="Left" VAlignment="Center" IsEnabled="False" IsEnabledOnEdit="False" CellBackColor="Transparent" FontBold="True" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control3" GridRow="1" GridColumn="1" GridColumnSpan="3" Margin="4" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" Value="Cities combo has a constraint on the Country column matched to the value of the Country combobox." CellBackColor="Transparent" FontItalics="True" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control5" GridRow="5" GridColumn="1" GridColumnSpan="3" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" Value="The Test hyperlink has a calculated value affected by the contents of the Email textbox" CellBackColor="Transparent" FontItalics="True" ForeColor="#244061" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control6" GridRow="6" GridColumn="0" GridColumnSpan="4" Margin="2" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" Value="Notice that the -Contacts- tab is hidden on New records and is automatically becoming visible on existing ones. This is accomplished by adding a simple script in the LoadCompleted event (Designer &gt; Options &gt; Scripts)" CellBackColor="Transparent" FontItalics="True" ForeColor="#17365D" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="DataGrid" Name="c_Contacts" GridRow="0" GridColumn="0" GridColumnSpan="4" Height="120" Section="00404102-45A7-42F1-BBD5-CA96F8EE7431" HAlignment="Left" VAlignment="Center" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" Detail_ListQueryName="Contacts" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;PageSize&quot; Value=&quot;0&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;ShowGroups&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;SelectionChangedScript&quot; Value=&quot;selectedItem = form.GetControl(&amp;quot;c_Contacts&amp;quot;).InputControl.GetSelectedItem();\n\nif (!pf.IsEmpty(selectedItem))\n{\n  id = selectedItem.ID;\n  first = selectedItem.FirstName;\n  last = selectedItem.LastName;\n  title = selectedItem.Title;\n  customer = selectedItem.Customer;\n  email = selectedItem.Email;\n  phone = selectedItem.Phone;\n  form.GetControl(&amp;quot;c_ContactId&amp;quot;).SetValue(id);\n  form.GetControl(&amp;quot;c_ContactFirstName&amp;quot;).SetValue(first);\n  form.GetControl(&amp;quot;c_ContactLastName&amp;quot;).SetValue(last);\n  form.GetControl(&amp;quot;c_ContactEmail&amp;quot;).SetValue(email);\n  form.GetControl(&amp;quot;c_ContactPhone&amp;quot;).SetValue(phone);\n}\nelse\n{\n  form.GetControl(&amp;quot;c_ContactId&amp;quot;).SetValue(&amp;quot;&amp;quot;);\n  form.GetControl(&amp;quot;c_ContactFirstName&amp;quot;).SetValue(&amp;quot;&amp;quot;);\n  form.GetControl(&amp;quot;c_ContactLastName&amp;quot;).SetValue(&amp;quot;&amp;quot;);\n  form.GetControl(&amp;quot;c_ContactEmail&amp;quot;).SetValue(&amp;quot;&amp;quot;);\n  form.GetControl(&amp;quot;c_ContactPhone&amp;quot;).SetValue(&amp;quot;&amp;quot;);\n}\n\n\n\n&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Fields&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Field&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Name&quot; Value=&quot;ID&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Header&quot; Value=&quot;Id&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Width&quot; Value=&quot;50&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;FontBold&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;P Name=&quot;Field&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Name&quot; Value=&quot;Title&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Header&quot; Value=&quot;Name&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Width&quot; Value=&quot;120&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;FontBold&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;P Name=&quot;Field&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Name&quot; Value=&quot;Email&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Header&quot; Value=&quot;Email&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Width&quot; Value=&quot;80&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;FontBold&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;P Name=&quot;Field&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Name&quot; Value=&quot;Phone&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Header&quot; Value=&quot;Phone&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Width&quot; Value=&quot;80&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;FontBold&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control7" GridRow="1" GridColumn="0" GridColumnSpan="4" Margin="4" Section="00404102-45A7-42F1-BBD5-CA96F8EE7431" HAlignment="Left" VAlignment="Center" Value="Records in the Contact list are retrieved from a List Query and is filtered by the hidden c_ID control holding the customer identifier." CellBackColor="Transparent" FontItalics="True" ForeColor="#244061" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control8" GridRow="2" GridColumn="0" GridColumnSpan="4" Margin="2" Section="00404102-45A7-42F1-BBD5-CA96F8EE7431" HAlignment="Left" VAlignment="Center" Value="Select a contact from the grid to update its fields" CellBackColor="Transparent" FontItalics="True" ForeColor="#244061" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control9" GridRow="0" GridColumn="0" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Customer" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control10" GridRow="1" GridColumn="0" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="First Name" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control11" GridRow="2" GridColumn="0" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Email" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control12" GridRow="0" GridColumn="2" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Contact ID" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control13" GridRow="1" GridColumn="2" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Last Name" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control14" GridRow="2" GridColumn="2" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Phone" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="LookupPicker" Name="c_ContactCustomer" GridRow="0" GridColumn="1" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" CalculationFormula="&quot;{c_ID};#{c_Title}&quot;" IsEnabled="False" IsEnabledOnEdit="False" IsCalculated="True" CellBackColor="Transparent" Lookup_Entity="Customers" Lookup_Url="http://bpcspdev/PowerFormsDemoSiteHTML" Lookup_ListId="CUSTOMERS" Lookup_DisplayFieldName="Title" Lookup_ValueFieldName="ID" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;AllowBlankSearchText&quot; Value=&quot;True&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Sorted&quot; Value=&quot;True&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;AutoLoadDisplayMember&quot; Value=&quot;False&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;SearchAnyPartOfText&quot; Value=&quot;True&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="TextBox" Name="c_ContactFirstName" GridRow="1" GridColumn="1" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="TextBox" Name="c_ContactEmail" GridRow="2" GridColumn="1" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="TextBox" Name="c_ContactId" GridRow="0" GridColumn="3" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" IsEnabled="False" IsEnabledOnEdit="False" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="TextBox" Name="c_ContactLastName" GridRow="1" GridColumn="3" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="TextBox" Name="c_ContactPhone" GridRow="2" GridColumn="3" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Align&quot; Value=&quot;Left&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control15" GridRow="4" GridColumn="0" GridColumnSpan="4" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="The Delete button has Enabled formula based on the value of the contact ID control." CellBackColor="Transparent" FontItalics="True" ForeColor="#244061" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Label" Name="c_Control16" GridRow="5" GridColumn="0" GridColumnSpan="4" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="You can build almost anything using script. Even a full-featured contact management inside the customer form. Script is used in the ActionButtons and in the ValueChange event of the grid to perform various actions." CellBackColor="Transparent" FontItalics="True" ForeColor="#244061" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Button" Name="c_DeleteContact" GridRow="3" GridColumn="0" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Delete" EnabledFormula="form.FieldValue(&quot;c_ContactId&quot;) != &quot;&quot;" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Actions&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Action&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Type&quot; Value=&quot;Script&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Value&quot; Value=&quot;var id = form.GetControl(&amp;quot;c_ContactId&amp;quot;).GetValue();\nif (id != &amp;quot;&amp;quot;)\n{\n  url = &amp;quot;http://bpcspdev/PowerFormsDemoSiteHTML&amp;quot;;\n  form.DeleteRecord(url, &amp;quot;Contacts&amp;quot;, id, function(e) {\n    form.GetControl(&amp;quot;c_Contacts&amp;quot;).SetValue(&amp;quot;&amp;quot;);\n  });\n\n}&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Button" Name="c_NewContact" GridRow="3" GridColumn="1" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="New" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Actions&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Action&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Type&quot; Value=&quot;Script&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Value&quot; Value=&quot;form.GetControl(&amp;quot;c_ContactId&amp;quot;).SetValue(&amp;quot;&amp;quot;);\nform.GetControl(&amp;quot;c_ContactLastName&amp;quot;).SetValue(&amp;quot;&amp;quot;);\nform.GetControl(&amp;quot;c_ContactFirstName&amp;quot;).SetValue(&amp;quot;&amp;quot;);\nform.GetControl(&amp;quot;c_ContactEmail&amp;quot;).SetValue(&amp;quot;&amp;quot;);\nform.GetControl(&amp;quot;c_ContactPhone&amp;quot;).SetValue(&amp;quot;&amp;quot;);&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Button" Name="c_RefreshContacts" GridRow="3" GridColumn="2" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Refresh" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Actions&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Action&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Type&quot; Value=&quot;Script&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Value&quot; Value=&quot;form.GetControl(&amp;quot;c_Contacts&amp;quot;).SetValue(&amp;quot;&amp;quot;);&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Button" Name="c_InsertContact" GridRow="3" GridColumn="3" Section="453FC63F-1C57-4A51-8A8C-3E64C9912D12" HAlignment="Left" VAlignment="Center" Value="Save Contact" CellBackColor="Transparent" ForeColor="Black" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Actions&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Action&quot;  &gt;&lt;PS&gt;&lt;P Name=&quot;Type&quot; Value=&quot;Script&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Value&quot; Value=&quot;first = form.GetControl(&amp;quot;c_ContactFirstName&amp;quot;).GetValue();\nlast = form.GetControl(&amp;quot;c_ContactLastName&amp;quot;).GetValue();\nemail = form.GetControl(&amp;quot;c_ContactEmail&amp;quot;).GetValue();\nphone = form.GetControl(&amp;quot;c_ContactPhone&amp;quot;).GetValue();\ncustomer = form.GetControl(&amp;quot;c_ID&amp;quot;).GetValue();\nid = form.GetControl(&amp;quot;c_ContactId&amp;quot;).GetValue();\n\nurl = &amp;quot;http://bpcspdev/PowerFormsDemoSiteHTML&amp;quot;;\nvar listitem = new Object();\nlistitem.ID = id;\nlistitem.FirstName = first;\nlistitem.LastName = last;\nlistitem.Title = first + &amp;quot; &amp;quot; + last;\nlistitem.Email = email;\nlistitem.Phone = phone;\nlistitem.Customer = customer;\n\nform.SaveRecord(url, &amp;quot;Contacts&amp;quot;, listitem, function (e) {\n    form.GetControl(&amp;quot;c_Contacts&amp;quot;).SetValue(&amp;quot;&amp;quot;);\n});&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
<Control Type="Hyperlink" Name="c_TestEmail" GridRow="4" GridColumn="3" Section="DA783CA8-0E20-4A22-AD86-DCF5E2E213A0" HAlignment="Left" VAlignment="Center" CalculationFormula="&quot;mailto:{c_Email}&quot;" IsCalculated="True" CellBackColor="Transparent" FontBold="True" ForeColor="#C00000" BackColor="Transparent" ExtraConfiguration="&lt;PS&gt;&lt;P Name=&quot;Text&quot; Value=&quot;Test Email&quot;  &gt;&lt;/P&gt;&lt;P Name=&quot;Target&quot; Value=&quot;_blank&quot;  &gt;&lt;/P&gt;&lt;/PS&gt;"  >
</Control>
  </Controls>
<ListQueries>
<ListQuery Name="Contacts" Entity="Contacts" Url="http://bpcspdev/PowerFormsDemoSiteHTML" ListId="Contacts" SortField="Title" Criteria="Customer;{c_ID};Equals;Lookup;AND;No;;" Attributes="ID;FirstName;LastName;Title;Email;Phone;Customer"  />
</ListQueries>
<Translations>
<T Key="Form_NewRecord" Value="New Record" />
<T Key="Form_SaveRecord" Value="Save Record" />
<T Key="Form_SaveAndExitRecord" Value="Save and Exit" />
<T Key="Form_EditRecord" Value="Edit Record" />
<T Key="Form_DeleteRecord" Value="Delete Record" />
<T Key="Form_DesignForm" Value="Design Form" />
<T Key="Form_Cancel" Value="Cancel" />
<T Key="Form_Print" Value="Print" />
<T Key="Form_Help" Value="Help" />
<T Key="Form_AlertMe" Value="Alert Me" />
<T Key="Form_ManagePermissions" Value="Manage Permissions" />
<T Key="Form_FlatMode" Value="Flat Mode" />
<T Key="Form_NormalMode" Value="Normal Mode" />
<T Key="Form_ValidationErrorMessage" Value="Error occurred during validation" />
<T Key="Form_ValidationErrorCaption" Value="Validation Error" />
<T Key="Form_RequiredFieldsMissing" Value="Values must be provided for every required field" />
<T Key="Form_DeleteConfirmationMessage" Value="Are you sure you want to delete this item?" />
<T Key="Form_NoRecordsToDelete" Value="No valid record to delete" />
<T Key="Attachments_TabHeader" Value="Attachments" />
<T Key="Attachments_Filename" Value="Filename" />
<T Key="Attachments_Browse" Value="Browse..." />
<T Key="Attachments_OpenSelected" Value="Open" />
<T Key="Attachments_Upload" Value="Upload" />
<T Key="Attachments_Delete" Value="Remove" />
<T Key="Attachments_DeleteConfirmationMessage" Value="Are you sure you want to delete the selected file?" />
<T Key="Attachments_DeleteConfirmationCaption" Value="Delete Confirmation" />
<T Key="Generic_OK" Value="OK" />
<T Key="Generic_Cancel" Value="Cancel" />
<T Key="Generic_Clear" Value="Clear" />
<T Key="Generic_Error" Value="Error" />
<T Key="Generic_Refresh" Value="Refresh" />
<T Key="Generic_Loading" Value="Please wait while the form is loading..." />
<T Key="Lookup_Title" Value="Select" />
<T Key="Lookup_BrowseButtonTooltip" Value="Browse..." />
<T Key="Lookup_SearchLabel" Value="Filter" />
<T Key="Lookup_SearchButton" Value="Search" />
<T Key="Lookup_SelectedValue" Value="Selected Value" />
<T Key="Lookup_SelectAll" Value="Select All" />
<T Key="Lookup_AddValue" Value="Add" />
<T Key="HyperlinkTextbox_Description" Value="Description" />
<T Key="BusyIndicator_PleaseWait" Value="Please wait..." />
<T Key="RadioButton_TrueLabel" Value="Yes" />
<T Key="RadioButton_FalseLabel" Value="No" />
<T Key="RadioButtons_NoValue" Value="[No Value]" />
<T Key="Grid_GroupHeader" Value="Drag a column header and drop it here to group by that column" />
<T Key="Grid_NextPage" Value="Go to the next page" />
<T Key="Grid_PreviousPage" Value="Go to the previous page" />
<T Key="Grid_LastPage" Value="Go to the last page" />
<T Key="Grid_FirstPage" Value="Go to the first page" />
<T Key="Grid_Items" Value="Items" />
<T Key="Grid_NoItems" Value="No items to display" />
</Translations>
</List>